<div>
    <h1 style="float:left;">
    {{localize form_title}}
    {{#if form_version}}
        <span style="vertical-align: super; font-size:.5em; font-weight:normal;">
        version:{{form_version}}
        </span>
    {{/if}}
    </h1>
    <div style="clear:both"></div>
    <center><img src="{{ headerImg }}" class="odk-formlogo" /></center>
</div>
<h3>Previous instances:</h3>
<ul data-role="listview" data-theme="d" data-divider-theme="d">
    {{#each instances}}
        {{#if dateDivider}}
            <li data-role="list-divider">{{dateDivider}}</li>
        {{/if}}
        <li>
            <h3>{{display_field}}</h3>
            <p><strong>Last Save Date:</strong></p>
            <p>{{savepoint_timestamp}}</p>
            {{#if savepoint_type}}<p>{{savepoint_type_text}}</p>{{/if}}
			<fieldset class="ui-grid-a">
					<div class="ui-block-a"><button id="{{instance_id}}" class="odk openInstance">edit</button></div>
					<div class="ui-block-b"><button id="{{instance_id}}" class="odk deleteInstance">delete</button></div>
		    </fieldset>
        </li>
    {{else}}
        <li>No saved instances.</li>
    {{/each}}
</ul>
<div>
    <a class="createInstance" data-role="button" data-icon="new" data-iconpos="top">Create new instance</a>
</div>
